<div class="panel panel-default">
	<div class="panel-heading newsfeed">
		<p><?=$zapmember['firstname']?></p>
	</div>
	<div class="panel-body" style="height:200px;overflow:auto;">
		<?php foreach($previous_message as $message){?>
		<div class="media">
			<a class="pull-left" href="#">
				<img src="<?php echo base_url(); ?>assets/uploads/.thumbs/images/zap/<?php echo $message['photo'] == '' ? DEFAULT_IMG : $message['photo'] ; ?>" alt="Profile-img" class="media-object" height="32" width="32">
			</a>
			<div class="media-body">
				<div class="col-md-10">
					<h5 class="media-heading text-primary"><?=$message['firstname']?></h5>
					<p><?=$message['message']?></p>
				</div>
				<div class="col-md-2">
					<p class="text-muted"><?=date('m/d/Y h:i A', strtotime($message['sent']));?></p>
				</div>
			</div>
		</div>
		<?}?>
		
	</div>
</div>
<div class="panel panel-default">
	<?php echo form_open(null, 'id="send_message" class="form-horizontal"'); ?>
		<div class="panel-body">
			<input type="hidden" name="toid" value="<?=$zapmember['userid']?>">
			<input type="hidden" name="to" value="<?=$zapmember['firstname']?>">
			<textarea class="form-control" rows="3" name="message"></textarea>
		</div>
		<div class="panel-footer text-right">
			<button type="submit" class="btn btn-info">Send Message</button>
		</div>
	<?php echo form_close(); ?>
</div>
  
